Shader "Cwl/StencilGame"
{
    Properties
    {
        [IntRange] _StenciID("Stencil ID",Range(0,255))=0
    }
    SubShader
    {
        Tags
        {
            "RenderType" = "Opaque"
            "RenderPinpeline" = "UniversalPipeine"
            "Queue" = "Geometry"
        }
        Pass
        {
            //颜色 缓冲区
            //模版 缓冲区 
            //深度 缓冲区

            Blend Zero One //颜色输出 关闭  减少带宽开销
            ZWrite Off //深度写入 关闭

            Stencil
            {
                Ref [_StenciID] //模版 值
                Comp Always  //模版通过 一直
                Pass Replace //模版值 替换
                Fail Keep
            }
        }
    }
}